﻿@using System.Globalization
@using Abp.Configuration
@using Abp.Configuration.Startup
@using Abp.Web.Security.AntiForgery
@using FwProject
@using FwProject.Configuration
@using FwProject.SignalR
@using FwProject.Web.Resources
@using FwProject.Web.Views.Shared.Components.SideBarNav
@using FwProject.Web.Views.Shared.Components.SideBarUserArea
@using FwProject.Web.Views.Shared.Components.TopBarLanguageSwitch
@using FwProject.Web.Views.Shared.Components.RightSideBar
@inject FwProject.Timing.AppTimes AppTimes
@inject IAbpAntiForgeryManager AbpAntiForgeryManager
@inject IMultiTenancyConfig MultiTenancyConfig
@inject IWebResourceManager WebResourceManager
@inject ISettingManager SettingManager
@{
    Layout = null;
    AbpAntiForgeryManager.SetCookie(Context);
    var uiTheme = await SettingManager.GetSettingValueAsync(AppSettingNames.UiTheme);
    SetAntiforgeryCookieAndHeader();

}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="shortcut icon" href="~/fwyg_favicon.ico">

    <title>饭碗易购</title>

    <environment names="Development">
        <link rel="icon" href="~/fwyg_favicon.ico" type="image/x-icon" asp-append-version="true" />
        <link href="~/Content/bootstrap.css" rel="stylesheet" asp-append-version="true" />
        <link href="~/Theme/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet" asp-append-version="true" />
        <link href="~/Theme/css/animate.min.css" rel="stylesheet" asp-append-version="true" />
        <link href="~/Theme/css/style.min862f.css?v=4.1.0" rel="stylesheet" asp-append-version="true" />
        <link href="~/Theme/js/plugins/layer/skin/layer.css" rel="stylesheet" asp-append-version="true" />
        <link href="~/css/main.css" rel="stylesheet" asp-append-version="true" />
    </environment>

    <environment names="Staging,Production">
        <link rel="icon" href="~/fwyg_favicon.ico" type="image/x-icon" asp-append-version="true" />
        <link href="~/Content/bootstrap.css" rel="stylesheet" asp-append-version="true" />
        <link href="~/Theme/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet" asp-append-version="true" />
        <link href="~/Theme/css/animate.min.css" rel="stylesheet" asp-append-version="true" />
        <link href="~/Theme/css/style.min862f.css?v=4.1.0" rel="stylesheet" asp-append-version="true" />
        <link href="~/Theme/js/plugins/layer/skin/layer.css" rel="stylesheet" asp-append-version="true" />
        <link href="~/css/main.css" rel="stylesheet" asp-append-version="true" />

        @*<link href="~/view-resources/Views/_Bundles/shared-layout.min.css" rel="stylesheet" asp-append-version="true" />*@
    </environment>

    @RenderSection("styles", required: false)
    <!-- View specific styles -->


    <script type="text/javascript">
        // This is used to get the application's root path from javascript. It's useful if you're running application in a virtual directory under IIS.
        var abp = abp || {};
        abp.appPath = '@ApplicationPath';
    </script>

</head>
<body class="@(ViewBag.BodyCss ?? "gray-bg")">
    @RenderBody()

    <environment names="Development">
        <script src="~/Scripts/jquery-3.1.1.min.js" asp-append-version="true"></script>
        <script src="~/Scripts/json2.js" asp-append-version="true"></script>
        <script src="~/Scripts/jquery.serialize-object.min.js" asp-append-version="true"></script>
        <script src="~/Scripts/jquery.unobtrusive-ajax.min.js" asp-append-version="true"></script>
        <script src="~/Scripts/bootstrap.min.js" asp-append-version="true"></script>
        <script src="~/Scripts/jquery.validate.min.js" asp-append-version="true"></script>
        <script src="~/Scripts/jquery.validate.unobtrusive.min.js" asp-append-version="true"></script>
        <script src="~/Theme/js/plugins/layer/layer.min.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/abp.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js" asp-append-version="true"></script>
        @*<script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.toastr.js" asp-append-version="true"></script>
            <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.blockUI.js" asp-append-version="true"></script>
            <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.spin.js" asp-append-version="true"></script>
            <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.sweet-alert.js" asp-append-version="true"></script>*@
        <script src="~/js/main.js" asp-append-version="true"></script>
        @if (SignalRFeature.IsAvailable && !SignalRFeature.IsAspNetCore)
        {
            <script src="~/lib/signalr/jquery.signalR.js" asp-append-version="true"></script>
        }
    </environment>

    <environment names="Staging,Production">
        <script src="~/Scripts/jquery-3.1.1.min.js" asp-append-version="true"></script>
        <script src="~/Scripts/json2.js" asp-append-version="true"></script>
        <script src="~/Scripts/jquery.serialize-object.min.js" asp-append-version="true"></script>
        <script src="~/Scripts/jquery.unobtrusive-ajax.min.js" asp-append-version="true"></script>
        <script src="~/Scripts/bootstrap.min.js" asp-append-version="true"></script>
        <script src="~/Scripts/jquery.validate.min.js" asp-append-version="true"></script>
        <script src="~/Scripts/jquery.validate.unobtrusive.min.js" asp-append-version="true"></script>
        <script src="~/Theme/js/plugins/layer/layer.min.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/abp.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js" asp-append-version="true"></script>
        @*<script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.toastr.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.blockUI.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.spin.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.sweet-alert.js" asp-append-version="true"></script>*@
        <script src="~/js/main.js" asp-append-version="true"></script>
        @if (SignalRFeature.IsAvailable && !SignalRFeature.IsAspNetCore)
        {
            <script src="~/lib/signalr/jquery.signalR.js" asp-append-version="true"></script>
        }

        @*<script src="~/view-resources/Views/_Bundles/shared-layout.min.js" asp-append-version="true"></script>*@
    </environment>
    <script type="text/javascript">
        $.validator.setDefaults({
            ignore: "input[type='hidden']"@*默认display:none的控件都不会验证*@
        });

        function dateFtt(fmt, date) { //author: meizz
            var o = {
                "M+": date.getMonth() + 1,                 //月份
                "d+": date.getDate(),                    //日
                "h+": date.getHours(),                   //小时
                "m+": date.getMinutes(),                 //分
                "s+": date.getSeconds(),                 //秒
                "q+": Math.floor((date.getMonth() + 3) / 3), //季度
                "S": date.getMilliseconds()             //毫秒
            };
            if (/(y+)/.test(fmt))
                fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
            for (var k in o)
                if (new RegExp("(" + k + ")").test(fmt))
                    fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
            return fmt;
        }
    </script>
    @RenderSection("scripts", required: false)
</body>
</html>
